import { defHttp } from '@/utils/http/axios';
enum Api {
  loginAPI = '/user/login',
}
//登录接口
export function loginAPI(params) {
  return defHttp
    .post(
      {
        url: Api.loginAPI,
        params,
      },
      {
        isTransformResponse: false,
      },
    )
    .then((res) => {
      return res;
    })
    .catch((err) => {
      console.log(err, '登录接口');
    });
}

